package com.backstage.lyorder.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author sakura
 * @since 2022-12-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("Mobile_end_Order")
public class MobileEndOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单编号
     */
      @TableId(value = "orderid", type = IdType.ID_WORKER)
    private String orderid;

    /**
     * 购物项编号
     */
    private Long cartItem;

    /**
     * 收货人姓名
     */
    private String name;

    /**
     * 收货人电话
     */
    private String tel;

    /**
     * 订单状态
     */
    private Integer status;

    /**
     * 下单时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 用户编号
     */
    @TableField("userNum")
    private String userNum;


}
